//
//  FoodDetaiTableViewCell.m
//  FoodList
//
//  Created by lanou on 16/4/9.
//  Copyright © 2016年 王金晶. All rights reserved.
//

#import "FoodDetaiTableViewCell.h"

@implementation FoodDetaiTableViewCell

-(void)cellHeight:(NSString *)str
{
    self.descLabel.lineBreakMode = NSLineBreakByWordWrapping;
    self.descLabel.preferredMaxLayoutWidth = CGRectGetWidth(self.descLabel.frame);
    self.descLabel.text = str;
    
}
-(void)cellSetModel:(FoodDetailModel *)model
{
    _model = model;
    _descLabel.text = model.desc;
    
}

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
